import qbs

CppApplication {
    type: "application" // To suppress bundle generation on Mac
    consoleApplication: true
    files: "main.cpp"
    property string OPENCV_SDK: qbs.getEnv("OPENCV_SDK3.0.0")
    property pathList opencvLibs:
    {
        if(qbs.buildVariant === "debug")
        return [
            OPENCV_SDK+"/x86/vc11/lib/opencv_world300d",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_core249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_imgproc249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_highgui249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_ml249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_stitching249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_video249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_nonfree249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_features2d249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_calib3d249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_objdetect249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_contrib249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_legacy249",
            //        OPENCV_SDK+"/x86/vc10/lib/opencv_flann249",
        ]
        else
            return [
                        OPENCV_SDK+"/x86/vc11/lib/opencv_world300",
                    ]
    }
    property pathList opencvPaths:[
        OPENCV_SDK+"/include"
    ]
    cpp.dynamicLibraries: {
        return opencvLibs;
    }
    cpp.includePaths:opencvPaths
    Group {     // Properties for the produced executable
        fileTagsFilter: product.type
        qbs.install: true
    }

}

